package pl.skubicha.service;

import java.util.List;

import pl.skubicha.exceptions.GradeNotFoundException;
import pl.skubicha.response.GradesDTO;

public interface GradesService< T > {

	public List< T > findAllGradesForSubjectInGroup( Integer idSubject, Integer idGroup );

	public List< T > findAllForUser( Integer id, Integer idSubject );

	public T findById( final Integer id ) throws GradeNotFoundException;

	public T create( final GradesDTO toCreate );

	public T update( GradesDTO updated ) throws GradeNotFoundException;

	public T delete( Integer groupId ) throws GradeNotFoundException;

}